package com.zhudoo.zhilian.dao.repository;

import com.zhudoo.zhilian.dao.entity.UserRange;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.io.Serializable;
import java.util.List;

@Repository
public interface UserRangeRepository extends JpaRepository<UserRange, Serializable> {

    List<UserRange> findAllByUserId(int id);

    UserRange findByUserIdAndOneIdAndTwoId(Integer userId, Integer oneId, Integer twoId);
}
